<%@ page language="java" pageEncoding="UTF-8"%>

<%@ page import="com.fandy.struts.Meta.*"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>register.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	
<div align="center">
	This is register page.
	<br>
<hr />
	<html:form action="Register.do" method="get">
		<table>
			<tr>
				<td>
					<bean:message key="Register.Page.UserName" />
					:
				</td>
				<td>
					<input type="text" name="<%=Staff.getName()%>" />
				</td>
			</tr>

			<tr>
				<td>
					<bean:message key="Register.Page.PassWord" />
					:
				</td>
				<td>
					<input type="password" name="<%=Staff.getPassword()%>" />
				</td>
			</tr>
			<tr>
				<td>
					<bean:message key="Register.Page.ConfirmPwd" />
					:
				</td>
				<td>
					<input type="password" name="<%="re" + Staff.getPassword()%>" />
				</td>
			</tr>
			<tr>
				<td>
					<bean:message key="Register.Page.Email" />
					:
				</td>
				<td>
					<input type="text" name="<%=Staff.getContact()%>" />
				</td>
			</tr>
			<tr>
				<td>
					<bean:message key="Register.Page.Salary" />
					:
				</td>
				<td>
					<input type="text" name="<%=Staff.getSalary()%>" />
				</td>
			</tr>

			<tr>
				<td>
					<bean:message key="Register.Page.DepartmentID" />
					:
				</td>
				<td>
					<input type="text" name="<%=Staff.getDepartmentid()%>" />
				</td>
			</tr>
			<tr>
				<td>
					<bean:message key="Register.Page.Authority" />
					:
				</td>
				<td>
					<input type="radio" name="<%=Staff.getAuthority()%>" value="Normal" checked="checked"  />
					职员
					<input type="radio" name="<%=Staff.getAuthority()%>" value="Admin" />管理员
					<input type="radio" name="<%=Staff.getAuthority()%>"
						value="SuperAdmin" />超级管理员
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<input type="submit" name="OK" value="注册" />
				</td>
			</tr>
		</table>
		<a  type="color:red"> <html:errors property="org.apache.struts.action.GLOBAL_MESSAGE" /></a>
	</html:form>
</div>
</body>
</html:html>
